home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1995 September / JCSM Shareware Collection (September 30th 1995 Author to Vendor Edition) (JCS Distribution).ISO / acctfinc / 10860c01.ziv / OBBK21.EXE / INSTALLB.BAT < prev    next >
DOS Batch File  |  1994-03-08  |  7KB  |  150 lines

  1. Echo Off
  2. REM ******************************************************
  3. REM * File   : Install.bat
  4. REM * Author : Stephen Williams
  5. REM * Date   : Sept. 3, 1992
  6. REM * Revised: Mar. 8, 1993
  7. REM * Purpose: Installation - OWL BASIC BOOKKEEPING Ver 2.x
  8. REM ******************************************************
  9. if "%1" == ""    goto help
  10. if "%1" == "?"   goto help
  11. if "%1" == "A:"  goto help
  12. if "%1" == "a:"  goto help
  13. if "%1" == "B:"  goto help
  14. if "%1" == "b:"  goto help
  15. if "%1" == "A"   goto help
  16. if "%1" == "a"   goto help
  17. if "%1" == "B"   goto help
  18. if "%1" == "b"   goto help
  19.  
  20. for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto Help
  21. for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:) do if %1.==%%f. goto Help
  22. for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:) do if %1.==%%f. goto Help
  23. for %%f in (X:,x:,Y:,y:,Z:,z:)                         do if %1.==%%f. goto Help
  24.  
  25. REM **************************
  26. REM HARD DISK INSTALLATION
  27. REM **************************
  28. if not exist %1:\nul goto help
  29. if not exist BBK_EXE.EXE goto BadDef
  30. if not exist BBK_DAT.EXE goto BadDef
  31. if not exist README.BBK goto BadDef
  32. CLS
  33. Echo ┌──────────────────────────────────────────────────────┐ 
  34. Echo │                                                      │
  35. Echo │          OWL BASIC BOOKKEEPING INSTALLATION          │
  36. Echo │                                                      │
  37. Echo │      Install Main Program & Help Files on %1:\OWL     │
  38. Echo │                                                      │
  39.  
  40. if exist %1:\OWL\BBK.EXE goto ExistEXE
  41. if exist %1:\OWL\BBK2.DBF goto ExistEXE
  42. if exist %1:\OWL\BBHELP.DBF goto ExistEXE
  43. if exist %1:\OWL\BBHELP.DBT goto ExistEXE
  44. if exist %1:\OWL\ORDERB.DOC goto ExistEXE
  45.  
  46. :InsMain
  47. Echo └──────────────────────────────────────────────────────┘
  48. Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
  49. BBK_EXE %1:\OWL
  50. CLS
  51. Echo ┌──────────────────────────────────────────────────────┐ 
  52. Echo │                                                      │
  53. Echo │          OWL BASIC BOOKKEEPING INSTALLATION          │
  54. Echo │                                                      │
  55. Echo │        Installing Sample Data Files on %1:\OWL        │
  56. Echo │                                                      │
  57.  
  58. if exist %1:\OWL\ACC.DBF goto ExistDat
  59. if exist %1:\OWL\INC.DBF goto ExistDat
  60. if exist %1:\OWL\EXP.DBF goto ExistDat
  61.  
  62. :InsDat
  63. Echo └──────────────────────────────────────────────────────┘
  64. Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
  65. BBK_DAT %1:\OWL
  66. COPY README.bbk %1:\OWL\README.bbk
  67. %1:
  68. CD \OWL
  69. goto End
  70.  
  71. :ExistEXE
  72. Echo │ IMPORTANT: Program already exists on your system.    │
  73. Echo │                                                      │
  74. Echo │ When Prompted:   Overwrite [Y/N]                     │
  75. Echo │                                                      │
  76. Echo │ Press Y if you are upgrading from an earlier version │
  77. Echo │ or want to reinstall the program.                    │
  78. Echo │                                                      │
  79. Echo │ Press N to retain your existing program & help files.│
  80.  
  81. goto InsMain
  82.  
  83. :ExistDat
  84. Echo │ IMPORTANT: Data files already exist on your system.  │
  85. Echo │                                                      │
  86. Echo │ When Prompted:   Overwrite [Y/N]                     │
  87. Echo │                                                      │
  88. Echo │ Press N to retain your existing data files.          │
  89. Echo │                                                      │
  90. Echo │ Press Y to replace your existing data files with the │
  91. Echo │ sample data files.                                   │
  92.  
  93. goto InsDat
  94.  
  95. :BadDef
  96. CLS
  97. Echo ┌────────────────────────────────────────────────────────────────┐
  98. Echo │      OWL Basic Bookkeeping 2.X  -  Installation HELP           │
  99. Echo │                                                                │
  100. Echo │ INSTALLB must be run from the drive where INSTALL.BAT resides. │
  101. Echo │                                                                │
  102. Echo │ If you are installing BASIC BOOKKEEPING from a floppy disk in  │
  103. Echo │ drive A type "A:" before running INSTALLB.                     │
  104. Echo │                                                                │
  105. Echo │ Example:    A:            (Set Default To Drive A)             │
  106. Echo │             INSTALLB C    (Install Program on drive C)         │
  107. Echo │                                                                │
  108. Echo │                   PROGRAM NOT INSTALLED                        │
  109. Echo └────────────────────────────────────────────────────────────────┘
  110. goto bad_end
  111. :Help
  112. Cls
  113. Echo ┌────────────────────────────────────────────────────────────────┐
  114. Echo │      OWL Basic Bookkeeping 2.X  -  Installation HELP           │
  115. Echo │                                                                │
  116. Echo │                                                                │
  117. Echo │ OWL Basic Bookkeeping must be installed on a HARD DISK DRIVE.  │
  118. Echo │                                                                │
  119. Echo │ The install program decompresses archive files and copies them │
  120. Echo │ to subdirectory \OWL on the designated hard disk drive.  If    │
  121. Echo │ \OWL does not exist on the designated hard disk, it will be    │
  122. Echo │ created for you.                                               │
  123. Echo │                                                                │
  124. Echo │ Syntax for the command is:  INSTALLB d                         │
  125. Echo │                                                                │
  126. Echo │        where "d" is the hard disk drive letter where you want  │
  127. Echo │        the program installed.                                  │
  128. Echo │                                                                │
  129. Echo │ Examples:  INSTALLB C   (Note no colon is typed)               │
  130. Echo │            INSTALLB D                                          │
  131. Echo │            etc.                                                │
  132. Echo │                                                                │
  133. Echo │                   PROGRAM NOT INSTALLED                        │
  134. Echo └────────────────────────────────────────────────────────────────┘
  135. goto bad_end
  136. REM ************************
  137. REM End Of BBK Installation
  138. REM ************************
  139. :end
  140. CLS
  141. Echo ┌──────────────────────────────────────────────────────┐
  142. Echo │ OWL BASIC BOOKKEEPING HAS BEEN INSTALLED ON %1:\OWL   │
  143. Echo │                                                      │
  144. Echo │         To run BASIC BOOKKEEPING type "BBK"          │
  145. Echo │                                                      │
  146. Echo │  Please review file README.BBK for important infor-  │
  147. Echo │  mation on configuring your system.                  │
  148. Echo └──────────────────────────────────────────────────────┘ 
  149. :bad_end
  150.